  <!--[* $Id: postcalendar_user_view_event_details.htm 439 2009-12-31 20:27:57Z craigh $ *]-->
  <!--[pnsecauthaction comp="::" inst=".*" level="ACCESS_ADD" assign="ACCESS_ADD"]-->
  <!--[formutil_getpassedvalue name="theme" source="get" assign="theme" default=false]-->
  <!--[ assign var="PRINT_VIEW" value=0 ]-->
  <!--[if $theme eq "Printer"]-->
      <!--[* page presented in printer theme *]-->
      <!--[ assign var="PRINT_VIEW" value=1 ]-->
  <!--[/if]-->
  <!--[ if $PRINT_VIEW eq false ]-->
      <!--[ include file="user/postcalendar_user_navigation_small.htm" ]-->
  <!--[ /if ]-->

  <!--[include file="event/postcalendar_event_view.htm" ]-->

  <!--[ if $PRINT_VIEW eq false ]-->
      <!--[ if $EVENT_CAN_EDIT ]-->
          <div>
              <a href="<!--[pnmodurl modname="PostCalendar" type="event" func="edit" eid=$loaded_event.eid]-->"><!--[gt text='Edit event']--></a> |
              <a href="<!--[pnmodurl modname="PostCalendar" type="event" func="copy" eid=$loaded_event.eid]-->"><!--[gt text='Copy event']--></a> |
              <a href="<!--[pnmodurl modname="PostCalendar" type="event" func="delete" eid=$loaded_event.eid]-->"><!--[gt text='Delete event']--></a>
          </div>
      <!--[ /if ]-->
  <!--[ else ]-->
      <div style='text-align:right;'>
          <!--[ assign var="viewtype" value=$smarty.get.viewtype ]-->
          <!--[if ((empty($smarty.get.viewtype)) or (!isset($smarty.get.viewtype)))]-->
              <!--[pnmodgetvar module="PostCalendar" name="pcDefaultView" assign="viewtype" ]-->
          <!--[/if]-->
          <!--[formutil_getpassedvalue name="Date" source="get" assign="Date" default='']-->
          <a href="<!--[pnmodurl modname="PostCalendar" func="view" viewtype=$viewtype Date=$Date eid=$loaded_event.eid ]-->"><!--[gt text='Return']--></a>
      </div>
  <!--[/if]-->


  <!--[securityutil_checkpermission_block component='MyModule::' instance='::' level=ACCESS_ADMIN]-->
    <form method="post" action="<!--[pnmodurl modname="PostCalendar" 
                                              func="checkout" 
                                              startdate=$loaded_event.eventDate 
                                              enddate=$loaded_event.eventDate
                                              invcode= $loaded_event.invcode
                                              quantity=1 
                                ]-->"
      <div style='text-align:left;'>
        <input type="submit" value="Checkout" name="checkout">
      </div><br>
    </form>
  <!--[/securityutil_checkpermission_block]-->

  <!--[ pnmodcallhooks hookobject=item hookaction=display hookid=$loaded_event.eid returnurl="index.php?module=PostCalendar&func=view&viewtype=details&eid=`$loaded_event.eid`" ]-->
  <!--[ include file="user/postcalendar_user_footer.htm" ]-->
